home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / comm / net / lpd.lha / lpd.doc < prev    next >
Text File  |  1994-09-11  |  3KB  |  100 lines

  1. Simple Line Printer Daemon
  2.  
  3. ©1994 by Juergen Schubert
  4.  
  5.  
  6. 0. Disclaimer
  7.  
  8.  This software is provided under the GNU General public license with
  9.  all its rights and restrictions.
  10.  
  11.  
  12. I. Warning
  13.  
  14.  This version doesn't implement any security features. If you need a safe
  15.  system, don't use this software or modify it for your needs. It works fine
  16.  for me and if there is enough feedback I will implement additional features
  17.  like real printer support etc. Maybe a LPR command is following soon.
  18.  
  19.  It is possible to destroy software installed on your computer with a
  20.  simple lpr-command, so be careful!
  21.  
  22.  
  23.  
  24. II. Prerequisites
  25.  
  26.  You will need at least AmiTCP 3.0 beta 2 installed on your computer.
  27.  
  28.  
  29. III. Installation
  30.  
  31.  Copy the LPD proram to your AMITCP:serv directory,
  32.  edit your amitcp:db/inetd.conf and add the following entry:
  33.  
  34. printer   stream      tcp nowait root amitcp:serv/lpd
  35.  
  36.  If you want to be informed about every access to the lpd with target,
  37.  accessing host and number of transferred bytes, your entry will look like
  38.  
  39. printer   stream      tcp nowait root amitcp:serv/lpd lpd -log
  40.  
  41.  That's it, at the next inetd startup you can use your AMIGA as a
  42.  printserver.
  43.  
  44.  
  45. IV. Using lpd
  46.  
  47.  The lpd recongnizes some sort of printers:
  48.  If you choose the lpr-printer the output will be written directly to par:
  49.  
  50.  If you choose any other printer name it will be interpreted as a complete
  51.  device/filename where the printed files will be written to. Multiple
  52.  output to the same file will cause an append of data, e.g.
  53.  
  54.  Command on the remote host
  55.  
  56.  lpr -P lpr ...      -> Default printer will go to PAR:
  57.  
  58.  lpr -P PRT: ...     -> Data will be printed to PRT:
  59.  
  60.  lpr -P ram:out ...  -> Data will be written to the file ram:out. If it exists
  61.                         data will be appended.
  62.  
  63.  
  64.  !DANGEROUS!
  65.  lpr -P s:startup-sequence -> Data will be appended to your startup-sequence.
  66.  
  67.  
  68.  
  69. V. Reaching the author
  70.  
  71.  You can reach me under  Juergen Schubert  <schubert@rz-sun2.fh-weingarten.de>
  72.  maybe in the near future at               <juergen@desert.sub.org>
  73.  FIDO 2:246/2320.42
  74.  
  75.  
  76.  
  77. VI. Recompiling
  78.  
  79.  It compiles fine with SAS/C 6.51 and the AmiTCP-api-3.0b2 package.
  80.  An SCOPTIONS file is provided, you simply enter "sc lpd.c" to generate a
  81.  new LPD.
  82.  Please let me know any big improvements/new implemented features maintain
  83.  a complete version.
  84.  
  85.  
  86.  
  87. VII. Future
  88.  
  89.  Well, because it was quite easy to implement a LPD with AmiTCP I may write
  90.  some additional missing commands. Feel free to send me your request.
  91.  
  92.  
  93.  
  94. VII. Acknowledgements
  95.  
  96.  I want to say "Thank you!" to the AmiTCP-team for providing this great
  97.  protocol stack. If you want to include an enhanced LPD to your distribution,
  98.  feel free to contact me.
  99.  
  100.